home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1299 < prev    next >
Encoding:
Text File  |  1996-08-06  |  797 b   |  34 lines

  1. Path: Norway.EU.net!usenet
  2. From: sb@metis.no (Steinar Bang)
  3. Newsgroups: comp.lang.c++
  4. Subject: [Q] same template name with template-arg-list
  5. Date: 10 Jan 1996 12:03:26 +0100
  6. Organization: AT&T GIS Norge AS, Horten, Norway
  7. Sender: sb@balder.metis.no
  8. Message-ID: <whlong48ht.fsf@balder.metis.no>
  9. NNTP-Posting-Host: balder.metis.no
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. X-Newsreader: Gnus v5.0.12
  13.  
  14. Is it legal in the ANSI C++ draft to have something like:
  15.  
  16. template<class T> class sequence {
  17. public:
  18.   sequence() ;
  19. };
  20.  
  21. template<class T, int len> class sequence {
  22. public:
  23.   sequence() ;
  24. };
  25.  
  26. and have these two be different templates?
  27.  
  28. Same template name but different argument lists should give different
  29. signatures, so I don't see any principal problem...?
  30.  
  31. Thanx!
  32.  
  33. - Steinar
  34.